const routeName = 'cmn';
import { Layout } from '@/router/constant';
import { DatabaseOutlined } from '@vicons/antd';
import { renderIcon } from '@/utils/index';

const routes = [
  {
    path: '/cmn',
    name: routeName,
    redirect: '/cmn/dict',
    component: Layout,
    meta: {
      title: '数据管理',
      icon: renderIcon(DatabaseOutlined),
      sort: 2,
      alwaysShow: true,
    },
    children: [
      {
        path: 'dict',
        name: `${routeName}_dict`,
        meta: {
          title: '数据字典'
        },
        component: () => import('@/views/cmn/dict/index.vue')
      }
    ],
  },
];

export default routes;